<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Subdownloader Web</title>

<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.form.js" type="text/javascript" charset="utf-8"></script>
<link href="css/style.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(function() {
	
  $("#subdownloader_form").ajaxForm({
	  target: '#server_response',
	  
  });

  $('#loading')
  .hide()  // hide it initially
  .ajaxStart(function() {
      $(this).show();
  })
  .ajaxStop(function() {
      $(this).hide();
  });
})
</script>
</head>
<body>
<h1>Subdownloader Web</h1>

<form id="subdownloader_form" action="ajax/subdownloader_cli.php" method="post">
<fieldset>
<legend>Set your preferences</legend>
<label for="language">Language:</label>
<select id="language" name="language">
	<option value="eng">English</option>
	<option value="pob">Português Brasileiro</option>
	<option value="por">Português</option>
</select>
<br/>
<label for="path_to_scan" title="Full path to your video(s) on the server. Don't use '~'">Path to Scan:</label>
<input type="text" id="path_to_scan" name="path_to_scan" value="" />
<br/>
<label for="rename_subs" title="Check to rename subtitles to match movie file name"><input type="checkbox" name="rename_subs" id="rename_subs" value="true" />Rename Subs</label>
</fieldset>
<fieldset>
<legend>Actions</legend>
<input type="submit" value="Find all subtitles to me!"/>
</fieldset>

</form>

<p id="server_response"></p>

<div id="loading">Loading...</div>

</body>
</html>